<template>
	<view>
		详情页
		<image :src="info.author.avatar_url" mode=""></image>
		<p>{{info.title}}</p>
		<view v-html="info.content">
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info:{}, //详情
			}
		},
		methods: {
			
		},
		onLoad(options) {
			console.log(options);
			let {id} = options
			uni.request({
				url:"https://cnodejs.org/api/v1/topic/"+id
			}).then(res=>{
				console.log(res);
				let [fail, data] = res;
				this.info = data.data.data;
			})
		}
	}
</script>

<style>

</style>
